When writing chars to buffer, block until space is available