Check if incomplete write handles write buffer correctly.