There are no rules that say that passengers on cruise ships can't sleep on their balconies. That said, cruise lines do generally advise against it. Many people enjoy sleeping on their balconies, and you won't have any problem if you want to do so too.