Hello,
are you using the latest version of sitemap generator? If not, please install the recent one.
As for file permissions, you should contact your hosting support with question on how to setup the files access to allow write operations for php script.