Of course they have the right to. Loaning a player is not just dropping them off in Bergamo and hoping for the best. There's a contract and until next July he is their's.
If an agreement is not reached with Atalanta then we can't just take him. They were very adamant at not losing him early. With having lost so many players, it makes sense.