crypto: change assertion to condition in bio

Read head can be the same as write head, even if there's some data to
read.