Bilbo had been forced to stop, by sheer luck managing to stab the Warg that had chased him through the head, killing it. However, his sword then got stuck in the creature's skull and he had to brace his foot against it to be able to pull it back out. By then all the others were up in the branches of the tree, and the pack was still advancing. "Oh dear..."