this is an odd way of saying `bytesLeftInWriteWindow < byteCount`