1. With her hair on the wind, she ran to me.

2. With her hair in the wind, she ran to me.
-----------------------------------
Which preposition do we have to use?

Use the preposition "in" -- but this would be even better:

With her hair flying in the wind, she ran to me.