Firefighters battled an eight-hour blaze in rural Sarawak after a wooden longhouse with 21 units was completely destroyed by fire.