After you write to the SSPBUF if you wait for SSPIF instead of BF then ACKSTAT will be valid.