If the pitch ricocheted out of play into dead-ball territory, runners are awarded bases regardless of whether or not they were forced to advance by ball four to the improper batter. Therefore, the improper batter did not cause these runners to move up. For this reason, I think the runners' advances are there to stay regardless of the successful BOO appeal.
Then again, I could be wrong.