I hired a guy to replace a rotting deck to a rental unit above my home. He didn't, and I sued him in small claims. He refused to pay. Do I write his invoice off?

I am wondering if I can write off the original cost of the repair, given that I have not received reimbursement for the money I spent.