fixed bug in writeMatrixFile, manifested by eiCluster in subset mode