Caterpillar writes off most of China deal after fraud