Yeah, there was no violation. You are allowed to tell the program where you are going to rank them; actually, they are allowed to tell you the same... the key is neither party is to ask for such information. On the other hand this means nothing, because the match has the final say.
So, don't worry at all. Actually, it sounds like what I did. Except I told the PD of my #1 choice in person. His response was, "you do not have to tell me that, but we are very happy". Then I did something kind of risky, I asked him what would be the reason I would not match" His response, "I do not know if such a canidate exist, but if one was 99% in her class, 99% on boards, AOA member, spent 2 days here and the residents loved her, she would be #1" I said OK. Thinking, I don't care if I am #1, I just want to be in the top three (this is for OB/GYN).
For the comment about if they like you, they will rank you regardless. I will say, it is strongly encouraged to let the programs know your interest. Every attending, resident, PD was told me that.