resigns the bytes and completes the write