Microsoft Posts Profit; Takes $900 Million Surface RT Write-Down