Write files in an atomic fashion w/configurable ownership