Let k and l be positive integers with k >=l . A cycle with two blocks C(k,l) is an oriented cycle formed by the union of two internally disjoint directed paths of lengths k and l respectively. Recently, Kim et al. proved that any strong digraph containing no subdivisions of C(k,l) has chromatic number at most 12k^2. In fact, we are able to improve this upper bound to 4k^2, not only for strong digraphs but also for digraphs having a spanning out-tree. Moreover, we prove that every digraph containing a Hamiltonian directed path with no subdivisions of C(k,l) has chromatic number at most 3(k-1).