Actually my khums date is approaching and I need to clarify on a few things. 
 I have a loan amount to be repaid, the loan was taken for living expenses. And by the end of the khums year I will not be able to pay of the loan fully from the person I borrowed. I dont have any savings such that I can pay off the full loan amount before the khums date. What is the ruling about the khums in this situation?

If you paid the amount you have in hand as an installment, before your khoms day, then you do not need to pay any khoms.