Loading hml file in iframe from data/data/apppackagename/files folder

Hi I am trying to load html from files folder using iframe.I downloaded html from server using $http and $cordovaFile.writeFile services .Problem I am facing iframe is not loading html file giving file not found error.file permissions for html file is only rw(for owner) all others are blank. when I push file with all permissions including anonymous it is loading in iframe.Anyone please tell me how to include permissions while writing file using writeFile.