After the rectification period has passed, a contractor re-laid a defective floor. It is possible the cost of relaying the carpet to be deducted from the final account fee?

It cannot be deducted from the final account fee as carpets are not part of the Works. Under these circumstances, the employer can either take legal action against the contractor, or deduct the cost from the amount claimed in the final certificate.