(Reuters) - Western Digital Corp said it would buy Virident Systems Inc for $685 million as the hard drive maker and Seagate Technology Plc battle for a piece of the fast-growing market for solid-state drives used in servers.