Fix  "Undo Write Off" link on repayments page

See #299