In this sentence, "only" is modifying the verb "like". This sentence is saying that "I" is doing nothing other than liking dancing at a party. "I" isn't praising, criticizing or ignoring dancing at a party, s/he is simply liking it.