Hi Nick,
This was just something that was missing; I didn't define reading and writing of the "range" type that matrices use to store their column and row size. I just defined that and pushed the change to Github. So if you do "git pull" and recompile ITensor you should now be able to use writeToFile with CMatrix.
Thanks for the bug report!
Best regards,
Miles