You have to beat all three of the guardians of the castle in order to get into the castle's interior. So you beat the Warlock Serpent, the Kangaroo and the Vampire Bat.
i have done it but i can't still get inside :<
Weird... Try fighting them again, like try fighting maybe the Warlock or the Bar again and see if you might have not done it correctly.