Toshiba announces massive losses as Western Digital takes it to court to block it unilaterally spinning off its flash memory unit.