check for write permission