Albinism is a result of genetic mutation that causes a deficiency in melanin (there are several alterations that can trigger it). Who knows whether that mutation had showed up as early as Tolkien's stories take place? They certainly wouldn't have known what caused it, or even what to call it.
Maybe Dwalin's blue beard was a result of some odd genetic mutation, though.