Write a byte value at writePosition (incremented when written successfully).
when no free space in the buffer.