the node with which the client connects when it issues a record becomes the coordinator for this record. So in your script, node1 will be the coordinator. Then, Node1 calculated the value of the hash token for the record and sees that this token belongs to node2. Then it forwards the record to node2.
Node2 will receive a write request from node1 and, since it is a local write, will add it to commitlog and memtable on node2. This is so that if node2 had to go down before memtable was photographed, it could rebuild memory by republishing commitlog.
memtable 2, 2.
2, node1, , node1 , .
. node, . , , . .