Correcting write submission for k-means

Signed-off-by: Gaurav <ga286@cornell.edu>