I'm not an accountant, but you can certainly balance books while showing a loss. Double-entry bookkeeping simply means that every transaction has two parts, and "balancing" simply means that all the transactions cancel out properly.
I joke with my accountant friends that their entire job is counting to zero.