BHP profit drops 20% due to writedown