Liutyi added write data to cluster function