Update writeFile in sqlfs to respect directory can_write perm.