but, even if written off, an expense is an expense. It does impact your earnings. If your revenue is 200, 50% tax rate, you pay 100. If you pay 100 for a debt you can deduct it, but you still make 50.
I'm a poor accountant, but I should be able to get this right :)