Motivation:
Unnecessary empty writes should be avoided, and we should avoid
completing promises too often.
Modifications:
- Avoid sending a split promise on every write when writes are too big.
- Avoid sending a zero-length write when writes are too big.
Result:
Slightly better write behaviour.
Note that this is fundamentally un-testable: there's no place to put a
test hook here, and we coalesce writes on the far side, so we can't do
much here.