`ack` is a user defined message to be sent back when the write is finished or `null` if no ack is wanted.