Unless otherwise agreed in writing, an association shall apply:
(1) a prepayment of principal to the final installment of the obligation until the final installment is fully paid; and
(2) additional prepayments on installments in the inverse order of their maturity.