the balrogs were destroyed , save some few that fled and hid themselves in caverns inaccessible at the roots of the earth ; and the uncounted legions of the ores perished like straw in a great fire , or were swept like shrivelled leaves before a burning wind .