Unless otherwise agreed in writing, a savings bank 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 to installments in the inverse order of their maturity.