Thre is a trade-off, you can work and write up but then writing up will take much longer and consequently you will be able to apply for proper jobs much later. On the other hand, you can borrow money so that you dont have to work while writing up, finish sooner, start work sooner and give than money back. I would prefer the last option because working takes up so much time and distracts from writing...