Sync now chunks writes to the buffer if the buffer is too small for a write