cocos Saving data to file using NSDictionary