ByteBridge.flush() does not flush anything if the target buffer is not writable but expandable

- Fixes #1055