cgroup files: convert res_counter_write() to be a cgroups write_string() handler