updated clEnqueueWriteBuffer