You need to make sure that the windows user that is the identity on the application pool has full control file system permissions on the /Data folder and all child folders and files, as well as on the /App_Data folder.
You may have set the permissions on the folders but it apparently did not propagate write permissions to the existing files. You'll need to update the permissions on the affected files.
Hope that helps,
Joe