Adding write function for borrower xml file