In order to keep the air conditioning working inside the cabin you do have to keep the balcony door closed on the majority of cruise lines. This is one of the reasons that many people do sleep on the balcony because in theory you can't lay in bed and keep the door balcony open.