have you given permissions to user "IUSR_IIS" whole inetpub directory?
This is what is recommended when configuring IIS, though just wwwroot would have been sufficient, but as moodledata folder is placed outside of wwwroot, similar permissions are to be given to that whole folder.