Use the correct accounts for write-off

A small but important fix: without this, the profit account is used for debit write-off