local write data needs to be in the form of a Buffer