Write to partitions