(Reuters) - Hard drive maker Western Digital Corp will buy troubled Stec Inc to become one of the top players in the high-growth solid-state drive (SSD) industry that has flourished despite high prices of the storage devices.