This was an attempt to escape from the angel of Yahweh in the road.
"It went"
"pushed Balaam's foot against it" or "hurt Balaam's foot against it"