Doesn't matter what agreement Real had with Dortmund, he will go where he wants next summer (which will probably be Real anyway). Dortmund can't do anything about it unless they get him to sign a new deal before then, which I doubt they will be able to.