Once the pride of Silicon Valley, HP's write-down and sales woes could force the company to make drastic changes to stay competitive.