Its ok for the pot.. it will do fine till harvest... looks like a 4 gal pot to me.

If the amount of light the plant will get is same as on your balcony, then it shouldn't be a problem but i would remove it from the window if it gets too hot... Also maybe the plant will stunt from going outside to inside and stop budding in this case for a week or so... it wont stretch much so you better let it on the balcony. Don't worry it ain't gonna grow over your walls.

Happy Growing!