Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
First of all, that write is going to fail for non-administrative users, unless the application itself has the needed permissions, since the entirety of /Library is unwritable to such users.

Secondly, though it seems unlikely to me, it's possible that the Mac OS just doesn't like your attempt to write a plist file in an invalid format.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.