Update State.cc

Added (boost::uint64_t) to State:Write for correct size of int