Unfortunately, you cannot claim the amount that your client refused to pay as a loss.
In fact, it is already built into the profit or loss of your business. As you did not get paid by the client, you do not report the income. You still claim the costs incurred in the project and your profit will be lower than if the client had paid you.