Allow to modify root folder of homedir

canWrite() returns false for "My Documents" because there's a readonly attribute set by default.
Checking real rights, available through getSecurity on the resource, against the username help to find if the user is allowed to write.