async write packet