Allow writes of length 0 to a full buffer

First condition is not needed and just prevents 0 length writes

Fixes #15583