If it says ‘irrecoverable debts were written of during the year’ then the receivables balance at the end of the year is already after subtracting them.
On the other hand, if you are given the receivables balance at the end of the year and told ‘it is then decided to write off some debts’ then they need removing from the balance given.