Add FIONWRITE to allow applications to sniff the amount of writable space on a descriptor. Implement this for serial devices only.
serial: fixed up FIONREAD and FIONWRITE

the device ioctl returns -ENOTTY when it hasn't handled the command