Added: Handle the last ack packet being wrong during a write