write should return Is_read_only if the fd is read-only

Signed-off-by: David Scott <dave.scott@eu.citrix.com>