check that write access possible