write plist file