check write permission