Document writefile atomicity and stat result shape